package com.nl.lib_project.contract

/** 作者: wangfei 创建时间: 2022/4/22 包名: com.nl.module_detail.contract 类名: NetworkTransaction */
abstract class NetworkTransaction {

  var state = TransactionProcessingState.UPLOAD_SUCCESS

  /** 执行动作 */
  abstract fun doAction()

  /** 当前事务是否已经处理成功 */
  fun isTransactionUploadSuccess(): Boolean {
    return state == TransactionProcessingState.UPLOAD_SUCCESS
  }
}
